cat << 'EOF' | tee -a ~/.bashrc

# === Proxy Toggle (7890) ===
proxy_on() {
    export http_proxy="http://127.0.0.1:7890"
    export https_proxy="http://127.0.0.1:7890"
    export ALL_PROXY="socks5://127.0.0.1:7890"
    echo -e "\033[32m[Proxy ON] 127.0.0.1:7890\033[0m"
}

proxy_off() {
    unset http_proxy
    unset https_proxy
    unset ALL_PROXY
    echo -e "\033[31m[Proxy OFF] Proxy disabled\033[0m"
}

proxy_status() {
    if [[ -z "$http_proxy" ]]; then
        echo -e "\033[33m[Proxy STATUS] OFF\033[0m"
    else
        echo -e "\033[32m[Proxy STATUS] ON → $http_proxy\033[0m"
    fi
}
EOF
